<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<h1>处方添加界面</h1>
<form action="" method="post">
    {% csrf_token %}
    处方名称:<input type="text" name="cname">
    <br>
    诊断结果:<input type="text" name="result">
    <br>
    患者:<input type="text" name="hname">
    <br>
    问诊医生:<select name="doctor" id="">
        <option value="" selected>请选择医生</option>
        {% for i in listl %}
            <option value="{{ i.id }}">{{ i.truename }}</option>
        {% endfor %}
    </select>
    <br>
    <input type="submit" value="新增">
</form>
</body>
</html>